package com.chang.annoValidation;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

@Configuration
@ComponentScan("com.chang.annoValidation")
public class ValidationConfig {
    @Bean
    public LocalValidatorFactoryBean getValidation() {
        return new LocalValidatorFactoryBean();
    }

}
